<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?= $this->fetch("layouts/head", array("admin"=>true)); ?>
</head>

<body>
	<div class="left menu">
		<a href="/admin" class="logo"><img src="/image/logo_admin.png" alt="" /></a>
		<h1 align="center"><strong>ADMINISTRACIJA</strong></h1>
		<? if(!$_SESSION["user"]): ?>
			<?= $this->fetch("admin/login"); ?>
		<? else: ?>
			<a href="/admin/logout" class="logout">&lt; izlaz &gt;</a><br clear="all" />
			<?= $this->fetch("menu_admin") ?>
		<? endif; ?>
	</div>
	
	<div class="left main <?= $this->request->params[0] ?>">
		<? if($_SESSION["user"]): ?>
		<?= $__content ?>
		<? endif; ?>
	</div>
</body>
</html>